import { Router } from "express"

const router = Router()

router.get("/userInfo", (req, res) => {
  res.send({
    code: 200,
    msg: "请求成功！",
    data: {
      u_id: 1,
      nickname: "不知独白"
    }
  })
})

router.post("/login", (req, res) => {
  res.send({
    code: 200,
    msg: "请求成功！",
    data: {
      token: "goiuhoifgiouyhiougoihoiuygolhiug"
    }
  })
})

export default router
